package cn.silver.module.system.bean;

import cn.silver.framework.core.utils.DateUtils;
import cn.silver.framework.mybatis.bean.BusBean;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 用户任职信息对象 UserPostModel
 *
 * @author Silver Zhou
 */

@Data
@EqualsAndHashCode(callSuper = true)
@Schema(name = "UserPostModel", title = "用户职务信息对象")
public class UserPostBean extends BusBean implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 岗位ID
     */
    @Schema(title = "部门岗位主键")
    private String deptPostId;
    /**
     * 岗位ID
     */
    @Schema(title = "部门主键")
    private String deptId;
    /**
     * 岗位ID
     */
    @Schema(title = "岗位主键")
    private String postId;

    /**
     * 用户ID
     */
    @Schema(title = "用户主键")
    private String userId;
    /**
     * 任职类型
     */
    @Schema(title = "任职类型")
    private String type;
    /**
     * 任职状态
     */
    @Schema(title = "任职状态")
    private String status;
    /**
     * 开始时间
     */
    @Schema(title = "开始时间")
    @JsonFormat(timezone = DateUtils.TIME_ZONE, pattern = DateUtils.YYYY_MM_DD)
    private Date startTime;
    /**
     * 结束时间
     */
    @Schema(title = "结束时间")
    @JsonFormat(timezone = DateUtils.TIME_ZONE, pattern = DateUtils.YYYY_MM_DD)
    private Date stopTime;

}
